* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

.box {
    width: 500px;
    height: 300px;
    margin: 100px auto;
    position: relative;
}

.box>.img_box {
    position: relative;
}

.box>.img_box>ul {
    position: relative;
    height: 200px;
    /* background-color: #87ceeb; */
}

.box>.img_box>ul>li {
    width: 400px;
    position: absolute;
    transition: 0.3s ease-in-out;
}


/*设置每张图片的偏移值*/

.box>.img_box>ul>.list01 {
    transform: translateX(0px) scale(0.8);
    z-index: 1;
    transform-origin: left center;
}

.box>.img_box>ul>.list02 {
    transform: translateX(50px) scale(1);
    z-index: 999;
}

.box>.img_box>ul>.list03 {
    transform: translateX(180px) scale(0.8);
    z-index: 1;
    transform-origin: left center;
}

.box>.img_box>ul>.list04 {
    transform: translateX(100px) scale(0.8);
    transform-origin: left center;
}

.box>.img_box>ul>li img {
    width: 100%;
    display: block;
    border-radius: 20px;
    border: 2px solid #000;
}

.box>.img_box>.l_btn {
    position: absolute;
    top: 30%;
    left: 0;
    width: 30px;
    height: 40px;
    background-color: gray;
    opacity: 0.7;
    transform: translateY(-50%);
    z-index: 99999;
    text-align: center;
    line-height: 40px;
    font-size: 30px;
    color: #bababa;
    cursor: pointer;
}

.box>.img_box>.l_btn:hover,
.box>.img_box>.r_btn:hover {
    width: 33px;
}

.box>.img_box>.r_btn {
    position: absolute;
    top: 30%;
    right: -2px;
    width: 30px;
    height: 40px;
    background-color: gray;
    opacity: 0.7;
    transform: translateY(-50%);
    z-index: 99999;
    text-align: center;
    line-height: 40px;
    font-size: 30px;
    color: #bababa;
    cursor: pointer;
}

.box>.dot_box {
    width: 80px;
    height: 13px;
    position: absolute;
}

.box>.dot_box>span {
    display: flex;
    text-align: center;
    width: 13px;
    height: 13px;
    background-color: pink;
}